gtk-demo: Improve wrapping in settings demo
authorMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jun 2020 13:35:56 +0000 (09:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jun 2020 13:35:56 +0000 (09:35 -0400)
The columnview overrides the width of its content,
so if a label is not willing to wrap its content
below a certain width, it will just get cut off.

Avoid that by not setting width-chars on the wrapping
content.

demos/gtk-demo/listview_settings.ui

index 82410e718a5ac17188b1b1419f4b13cf30b80dfc..cf2651d50b9e23afed01a8bdacbeac88545bfde0 100644 (file)
       <object class="GtkLabel">
         <property name="xalign">0</property>
         <property name="wrap">1</property>
-        <property name="width-chars">50</property>
-        <property name="max-width-chars">50</property>
         <binding name="label">
           <lookup name="summary" type="SettingsKey">
             <lookup name="item">GtkListItem</lookup>
       <object class="GtkLabel">
         <property name="xalign">0</property>
         <property name="wrap">1</property>
-        <property name="width-chars">50</property>
-        <property name="max-width-chars">50</property>
         <binding name="label">
           <lookup name="description" type="SettingsKey">
             <lookup name="item">GtkListItem</lookup>